package io.adrainty.bolee.security.hystrix;

import io.adrainty.bolee.framework.commons.basic.ResponseCode;
import io.adrainty.bolee.framework.commons.basic.ResultDTO;
import io.adrainty.bolee.framework.commons.utils.ResultDTOUtil;
import io.adrainty.bolee.security.feign.IClientFeign;
import io.adrainty.bolee.security.models.entity.ClientEntity;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author AdRainty
 * @version V1.0.0
 * @since 2025/8/9 下午7:14
 */

@Component
public class ClientFeignHystrix implements IClientFeign {

    @Override
    public ResultDTO<List<ClientEntity>> getClientList() {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);

    }

    @Override
    public ResultDTO<ClientEntity> getClientEntity(String clientId) {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }
}
